package com.box.ai.pojo.enums;

import lombok.Getter;

@Getter
public enum ChatTypeEnum {
    TALK_CHAR("chat","聊天类型"),
    PDF_CHAR("pdf","pdf类型"),
    GAME_CHAR("game","游戏类型"),
    CUSTOMER_CHAR("service","客服类型");

    private final String type;
    private final String desc;
    ChatTypeEnum(String chat, String desc) {
        this.type = chat;
        this.desc = desc;
    }

    public static ChatTypeEnum getByChat(String type){
        for (ChatTypeEnum resultCodeEnum : ChatTypeEnum.values()){
            if (resultCodeEnum.getType().equals(type)){
                return resultCodeEnum;
            }
        }
        return null;
    }
}
